﻿using System.Collections;
using System.Collections.Generic;
using UnityEngine;

public class testCub : MonoBehaviour{
    
    void Start(){
        MeshFilter meshFilter = gameObject.GetComponent<MeshFilter>();
        Mesh mesh = meshFilter.mesh;
        var vertices = mesh.vertices;
        var normals = mesh.normals;
        var uv = mesh.uv;
        for (int i = 0; i < normals.Length; i++){
            normals[i] = vertices[i];
        }
        meshFilter.mesh.normals = normals;
    }

}
